import { usePlugin, AddonHandler } from "./plugin"

export const useAddon = <T>(path: string, handler: AddonHandler<T>) => {
    return usePlugin('@sker/addon', handler, path)
}